package jonggyuni.basic;

import java.util.Scanner;

public class J08_Num62 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int num[] =new int[3];
		
		System.out.print("세개의 숫자를 입력하세요: ");
		
		for(int i=0; i<3; i++){
			num[i] = sc.nextInt();
		}
		
		System.out.print("정방향으로 출력 : ");
		for(int i=0; i<3; i++){
			System.out.print(num[i]+ " ");
		}
		System.out.println("");
		System.out.print("역방향으로 출력 : ");
		for(int i=2; i>=0; i--){
			System.out.print(num[i]+ " ");
		}
		sc.close();
	}

}
